﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlaceCodeAppropriately
{
    class Program
    {
        static void Main(string[] args)
        {
            //Sort the following if statements to produce result "a-b c-d".

            string Result = "";
            int x = 3;

            while (x > 0)
            {
                if (x > 2)
                {
                    Result = Result + "a";
                }

                x = x - 1;
                Result = Result + "-";

                if (x == 2)
                {
                    Result = Result + "b c";
                }

                if (x == 1)
                {
                    Result = Result + "d";
                    x = x - 1;
                }

            }

            Console.WriteLine(Result);
            Console.ReadLine();
        }
    }
}